
<div class="top-right">
     <?php $form=$this->beginWidget('CActiveForm', array(
                        'id'=>'form-search',
                        //'enableClientValidation'=>true,
                        'enableAjaxValidation'=>false,
                        'htmlOptions' => array(
                            'name'=>'from-search',
                            //'enctype' => 'multipart/form-data',
                            'onsubmit'=>"return false;",
                            "onkeypress"=>"if (event.keyCode == 13) {
                                ".CHtml::ajax(array(
                                    'url'=>Yii::app()->controller->createUrl('/search/index'),
                                    'type'=>'post',
                                    'typeData'=>'html',
                                    'update'=>'#search',
                                    'data'=>"js:$('#form-search').serialize()"
                                    ))
                                ."
                            }",
                            )
                    )); ?>
                    
    <div class="t-r-s-button">
        <?php
            echo CHtml::button("Tìm",array(
                'onclick'=>CHtml::ajax(array(
                'url'=>Yii::app()->controller->createUrl('/search/index'),
                'type'=>'post',
                'typeData'=>'html',
                'update'=>'#search',
                'data'=>"js:$('#form-search').serialize()",
                )),
                'class'=>'orange',
                )
                );
        ?>
    </div>
    
    <div class="t-r-s-textbox">
       <input name="input-search" type="text" placeholder="Tìm kiếm ..."/>
    </div>
<?php $this->endWidget();?>
</div>